<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<script type="text/javascript">
    window.onload = function () {
        var  body  = document.getElementsByTagName("body")[0];
        body.onmousemove = function () {
            status = "x+"+event.clientX+",y="+event.clientY;
        };
    };
</script>
</head>
<body style="height: 500px;border: 1px solid #000">

</body>
</html>